using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace ArchSoft
{
    public partial class AuthenticationFrm : Form
    {
        public AuthenticationFrm()
        {
            InitializeComponent();
        }

        DataTable dt = new DataTable();
        DataRow row;
        private string _projectPath;

        public string ProjectPath
        {
            set { _projectPath = value; }
        }

        private void AuthenticationFrm_Load(object sender, EventArgs e)
        {
            //string path = _projectPath + Path.DirectorySeparatorChar + "03 Output";
            //string[] element = Directory.GetDirectories(path);

            //foreach (string item in element)
            //{
            //    string[] nameArr = item.Split(Path.DirectorySeparatorChar);
            //    string name  = nameArr[nameArr.Length - 1];
            //    if (name != "Xref")
            //    {
            //        checkedListBox1.Items.Add(name);
            //    }
            //}
        }

        private void button2_Click(object sender, EventArgs e)
        {
           // dt.Columns.Add("Element");
           // CheckedListBox.CheckedItemCollection a = checkedListBox1.CheckedItems;
           // for (int i = 0; i < a.Count; i++)
           // {
           //     row = dt.NewRow();
           //     row["Element"] = a[i].ToString();
           //     dt.Rows.Add(row);
           // }
           // DataSet ds = new DataSet();
           // ds.Tables.Add(dt);
           //// ds.WriteXml(_projectPath);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //SetAuthentication frm = new SetAuthentication();
            //frm.ProjectPath = _projectPath;
        }
    }
}